//1.请求医院列表 所有的类型
//医院列表中 获取分页列表请求的参数中的params的类型
export interface getHosListReqParamstpe {
    hoscode?: string,
    hosname?: string,
    hostype?: string,
    provinceCode?: string,
    cityCode?: string,
    districtCode?: string,
    status?: 0 | 1,
}

//获取医院列表请求的返回的content数组中 每一项的类型
export interface hospitalListItemsType {
    id: string,
  createTime: string,
  updateTime: string,
  isDeleted: number,
  param: {
    hostypeString: string,
    fullAddress: string
  },
  hoscode: string,
  hosname: string,
  hostype: string,
  provinceCode: string,
  cityCode: string,
  districtCode: string,
  address: string,
  logoData: string,
  intro: string,
  route: string,
  status: 0 | 1,
  bookingRule: {
    cycle: number,
    releaseTime: string,
    stopTime: string,
    quitDay: number,
    quitTime: string,
    rule: string[]
  } | null
}

//获取医院列表请求的返回值中数组完整类型
export type getHosListReqContentType = hospitalListItemsType[]

//获取医院列表请求的返回值的完整类型
export interface getHosListReqReturnType {
    content: getHosListReqContentType,
    pageable: {
        sort: {
            sorted: boolean,
            unsorted: boolean,
            empty: boolean
        },
        pageNumber: number,
        pageSize: number,
        offset: number,
        paged: boolean,
        unpaged: boolean
    },
    totalElements: number,
    totalPages: number,
    last: boolean,
    first: boolean,
    sort: {
        sorted: boolean,
        unsorted: boolean,
        empty: boolean
    },
    numberOfElements: number,
    size: number,
    number: number,
    empty: boolean
}



//医院列表中 请求省的返回值的每一项类型
export interface getProvinceReqItem {
    id: number,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: object,
    parentId: number,
    name: string,
    value: string,
    dictCode: boolean,
    hasChildren: boolean
}

//2.医院列表中 请求省 市 区 类型的返回值类型
export type getProvinceReqReturn = getProvinceReqItem[]



//医院详情中 根据id获取医院详细信息请求返回值中bookingRule的类型
export interface getHosListByIdBookingRule  {
    cycle: number,
    releaseTime: string,
    stopTime: string,
    quitDay: number,
    quitTime: string,
    rule: string[]
}

//2.医院详情中 根据id获取医院详细信息请求返回值的类型
export interface getHosListByIdReqReturn {
    bookingRule?: getHosListByIdBookingRule,
    hospital?: hospitalListItemsType,
}


